package com.chennan.design.factory.simple;

import com.chennan.design.factory.simple.inteface.Pizza;
import com.chennan.design.factory.simple.type.PizzaType;

public abstract class AbstractPizzaStore {
	
	public Pizza orderPizza(PizzaType type) {
		Pizza pizza=createPizza(type);
		pizza.prepare();
		pizza.bake();
		pizza.cut();
		pizza.box();
		return pizza;
	}
	
	public abstract Pizza createPizza(PizzaType type);
}
